/**
 * Created by shenhai on 15/9/14.
 */

module.exports = function (app) {
    var appUser = require('../../controllers/mis/appuser/appuser-controller');
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/appUserList/:page/:size', appUser.frontUserList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/getCancelReasonMessageList', appUser.getCancelReasonMessageList);

    /* 宝宝树66小区 sprint5 创始人申请页面 拒绝用户小区大使申请修改 modify wangcan 20171206 start */
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/getDeclineReasonMessageList', appUser.getDeclineReasonMessageList);
    /* 宝宝树66小区 sprint5 创始人申请页面 拒绝用户小区大使申请修改 modify wangcan 20171206 end */

    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/pullBlack', appUser.pullBlack);

    /*  宝宝树66小区二次改造    add   guo.xiaomin  20170802   start   */
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/speakNotAllow', appUser.speakNotAllow);
    /*  宝宝树66小区二次改造    add   guo.xiaomin  20170802   end   */

    /*  宝宝树66小区三期改造    add   luolh  20170929   start   */
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/appUserDelete', appUser.appUserDelete);
    /*  宝宝树66小区三期改造    add   luolh  20170929   end   */

    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/talent', appUser.talent);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/modifyVAuthStatus', appUser.modifyVAuthStatus);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/updateInfo', appUser.updateInfo);
    app.get('/rest/' + RESTFullServiceVersion + '/mis/appUser/isModerator/:userId', appUser.isModerator);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/modifyUserRole', appUser.modifyUserRole);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/rejectRole', appUser.rejectRole);
    app.get('/rest/' + RESTFullServiceVersion + '/mis/appUser/exportUser', appUser.exportUser);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/updateParents', appUser.updateParents);

    var userAuth = require('../../controllers/mis/appuser/userAuth-controller');
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/userAuthList/:page/:size', userAuth.authList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/auth', userAuth.authenticate);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/refuseAuth', userAuth.refuseAuthenticate);


    var roleApply = require('../../controllers/mis/appuser/roleApply-controller');   // 包括 版主、雷峰团、创始人
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/roleApplyList/:page/:size', roleApply.roleApplyList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/roleApplyStatus', roleApply.roleApplyStatusUpdate);
    /*  宝宝树66小区二次改造    mod   chenf  20170802  start   */
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/roleApplyPowerSet', roleApply.roleApplyPowerSet);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/saveCommunitySet', roleApply.saveCommunitySet);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/editCommunitySet', roleApply.editCommunitySet);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/villageService', roleApply.villageService);
    /*  宝宝树66小区二次改造    mod   chenf  20170802  end   */



    var roleExamine = require('../../controllers/mis/appuser/roleExamine-controller');   // 包括 版主、雷峰团
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/roleExamineList/:page/:size', roleExamine.roleExamineList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/roleLeifengList/:page/:size', roleExamine.roleLeifengList);

    var userScore = require('../../controllers/mis/appuser/userScore-controller');
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/userScoreList/:page/:size', userScore.userScoreList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/addScoreManual', userScore.addScoreManual);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/appUser/userScoreDetail/:page/:size', userScore.userScoreDetail);

};